import { reqGetSearchInfo } from "@/api"
const actions={
    async getSearchList(context,params){
        let results=await reqGetSearchInfo(params)
        if(results.code===200){
         context.commit('GETSEARCHLIST',results.data)
        }
    }
}
const mutations={
    GETSEARCHLIST(state,a){
        state.h=a
       },
}
const state={h:{}}
const getters={
    goodsList(state){
        return state.h.goodsList
    },
    trademarkList(state){
        return state.h.trademarkList
    },
    attrsList(state){
        return state.h.attrsList
    },
}
export default{
    actions,
    mutations,
    state,
    getters
}